// Parser.h: interface for the CParser class.
//
//////////////////////////////////////////////////////////////////////


#pragma once
#include <string.h>

class CParser  
{
	enum
	{
		MAX_BUFF = 1024,
	};

public:
	
	CParser() { Reset(); }
	virtual ~CParser() {}

	virtual void Reset() { 	memset( m_szRecvBuff, 0, MAX_BUFF ); }
	
	virtual int	PacketParse( char* szMsg, size_t nLen, char* szPacket, size_t& nPacketSize ) = 0;	
	virtual int	MakePacket( char* szMsg, size_t nLen, char* szPacket, size_t& nPacketSize ) = 0;
	

protected:

	char m_szRecvBuff[MAX_BUFF];


};
